package blogger.client.model.entity;

import com.google.gwt.user.client.rpc.IsSerializable;

public class User implements IsSerializable{
	private long id;
	
	private String login;
	
	private String pass;
	
	private String mail;

    public User(String login, String pass, String mail) {
        this.login = login;
        this.pass = pass;
        this.mail = mail;
    }

    public User() {
    }

    public User(long id, String login, String pass, String mail) {
        this.id = id;
        this.login = login;
        this.pass = pass;
        this.mail = mail;
    }

    public void setMail(String mail) {
		this.mail = mail;
	}
	
	public String getMail() {
		return mail;
	}
	
	public void setPass(String pass) {
		this.pass = pass;
	}
	
	public String getPass() {
		return pass;
	}
	
	public void setLogin(String login) {
		this.login = login;
	}
	
	public String getLogin() {
		return login;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public long getId() {
		return id;
	}

	@Override
	public String toString() {
		return login;
	}
}
